package com.woniuxy.lrz.carlproject.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.lrz.carlproject.controller.form.serviceform.AddServiceForm;
import com.woniuxy.lrz.carlproject.controller.form.serviceform.UpdateServiceForm;
import com.woniuxy.lrz.carlproject.model.ServiceInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.lrz.carlproject.model.ServiceInfo;
import com.woniuxy.lrz.carlproject.service.dto.dtocar.CarDetailsTypeBrandDto;

import java.util.List;

/**
 * <p>
 * 服务表 服务类
 * </p>
 *
 * @author lrz
 * @since 2022-09-28
 */
public interface ServiceInfoService extends IService<ServiceInfo> {

    ServiceInfo getServiceById(Integer serviceId);

    Page<ServiceInfo> getAll(int current,int size);

    void add(AddServiceForm addServiceForm);

    void updateService(UpdateServiceForm updateServiceForm);

    void deleteById(Integer serviceId);


    List<ServiceInfo> getServiceInfoBy2Id(Integer serviceSecondId);
}
